a11y tests: Add a test for GtkActionBar
authorMatthias Clasen <mclasen@redhat.com>
Sat, 22 Feb 2014 17:02:30 +0000 (12:02 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 22 Feb 2014 17:31:18 +0000 (12:31 -0500)
testsuite/a11y/Makefile.am
testsuite/a11y/actionbar.txt [new file with mode: 0644]
testsuite/a11y/actionbar.ui [new file with mode: 0644]

index 158105554871955d4fee435f4b93387f3c8d1879..5f109dfd470ce408e15a661bf0a9b6ff72ba30c7 100644 (file)
@@ -79,6 +79,7 @@ testdata = \
        stack.ui stack.txt \
        headerbar.ui headerbar.txt \
        tree.ui tree.txt \
+       actionbar.ui actionbar.txt \
        $(NULL)
 
 test_in_files = \
diff --git a/testsuite/a11y/actionbar.txt b/testsuite/a11y/actionbar.txt
new file mode 100644 (file)
index 0000000..7b1cdeb
--- /dev/null
@@ -0,0 +1,97 @@
+window1
+  "window"
+  index: 0
+  state: enabled resizable sensitive showing visible
+  toolkit: gtk
+  <AtkComponent>
+  layer: window
+  alpha: 1
+  actionbar
+    "panel"
+    parent: window1
+    index: 0
+    state: enabled sensitive showing visible
+    toolkit: gtk
+    <AtkComponent>
+    layer: widget
+    alpha: 1
+    button1
+      "push button"
+      parent: center_box
+      index: 0
+      name: Start 1
+      state: enabled focusable sensitive showing visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkImage>
+      image size: -1 x -1
+      image description: (null)
+      <AtkAction>
+      action 0 name: click
+      action 0 description: Clicks the button
+    button2
+      "push button"
+      parent: center_box
+      index: 1
+      name: Start 2
+      state: enabled focusable sensitive showing visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkImage>
+      image size: -1 x -1
+      image description: (null)
+      <AtkAction>
+      action 0 name: click
+      action 0 description: Clicks the button
+    button5
+      "push button"
+      parent: center_box
+      index: 2
+      name: Center
+      state: enabled focusable sensitive showing visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkImage>
+      image size: -1 x -1
+      image description: (null)
+      <AtkAction>
+      action 0 name: click
+      action 0 description: Clicks the button
+    button4
+      "push button"
+      parent: center_box
+      index: 3
+      name: End 2
+      state: enabled focusable sensitive showing visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkImage>
+      image size: -1 x -1
+      image description: (null)
+      <AtkAction>
+      action 0 name: click
+      action 0 description: Clicks the button
+    button3
+      "push button"
+      parent: center_box
+      index: 4
+      name: End 1
+      state: enabled focusable sensitive showing visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkImage>
+      image size: -1 x -1
+      image description: (null)
+      <AtkAction>
+      action 0 name: click
+      action 0 description: Clicks the button
diff --git a/testsuite/a11y/actionbar.ui b/testsuite/a11y/actionbar.ui
new file mode 100644 (file)
index 0000000..b51c697
--- /dev/null
@@ -0,0 +1,55 @@
+
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkActionBar" id="actionbar">
+        <property name="visible">True</property>
+        <child>
+          <object class="GtkButton" id="button1">
+            <property name="visible">True</property>
+            <property name="label">Start 1</property>
+          </object>
+          <packing>
+            <property name="pack-type">start</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton" id="button2">
+            <property name="visible">True</property>
+            <property name="label">Start 2</property>
+          </object>
+          <packing>
+            <property name="pack-type">start</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton" id="button3">
+            <property name="visible">True</property>
+            <property name="label">End 1</property>
+          </object>
+          <packing>
+            <property name="pack-type">end</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton" id="button4">
+            <property name="visible">True</property>
+            <property name="label">End 2</property>
+          </object>
+          <packing>
+            <property name="pack-type">end</property>
+          </packing>
+        </child>
+        <child type="center">
+          <object class="GtkButton" id="button5">
+            <property name="visible">True</property>
+            <property name="label">Center</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>